package com.hmall.search.service;

import com.hmall.common.dto.PageDTO;
import com.hmall.search.pojo.ItemDoc;
import com.hmall.search.pojo.R;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface SearchService {
    List<String> getSuggestion(String key) throws IOException;

    Map<String,List<String>> getFilters(R r) throws IOException;

    PageDTO<ItemDoc> page(R r) throws IOException;

    void upById(Long id);

    void downById(Long id);
}
